package com.ws.ssmzongjie3.service.impl;

import com.ws.ssmzongjie3.bean.UserLikes;
import com.ws.ssmzongjie3.mapper.UserLikesMapper;
import com.ws.ssmzongjie3.service.UserLikesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserLikesServiceImpl implements UserLikesService {
    @Autowired
    private UserLikesMapper userLikesMapper;
    @Override
    public int deleteUserLikeById(UserLikes userLikes) {

        return userLikesMapper.deleteUserLikeById(userLikes);
    }

    @Override
    public int insertUserLike(UserLikes userLikes) {

        return userLikesMapper.insertUserLike(userLikes);
    }

    @Override
    public UserLikes getUserLikeById(UserLikes userLikes) {

        return userLikesMapper.getUserLikeById(userLikes);
    }

    @Override
    public List<UserLikes> listUserLike(UserLikes userLikes) {
        return userLikesMapper.listUserLike(userLikes);
    }

    @Override
    public int deleteUserLikeByRouteIdAndUserId(UserLikes userLikes) {
        return userLikesMapper.deleteUserLikeByRouteIdAndUserId(userLikes);
    }
}
